<div class="gray_box">
    <div class="inner_menu">
        <div class="top_blue_title"><?php echo __('Account Registration') ?></div>
    </div>
    <div class="registration_wrap">
        <br/>
        <br/>
        <br/>
        <div class="registration_form_wrap">
            <iframe name="upload_iframe" style="display:none" ></iframe>
            <form target="upload_iframe" method="post" enctype="multipart/form-data">
                <table>

                    <tr>
                        <th></th>
                        <td><img src="<?php echo image_path('demo_upload.gif') ?>"/><br/><button class="dbutton2"><?php echo __('Upload Photo') ?></button></td>
                    </tr>
                </table>
            </form>
            <?php echo $form->renderGlobalErrors() ?>
            <form method="post" action="<?php echo url_for('user/register') ?>" method="post">
                <?php echo $form['_csrf_token'] ?>
                <table>
                    <tr>
                        <th><?php echo __('Name') ?></th>
                        <td><?php echo $form['first_name']->render($form['first_name']->renderError() != '' ? array('class' => 'field_error') : array()) ?></td>
                    </tr>
                    <tr>
                        <th><?php echo __('Username') ?></th>
                        <td><?php echo $form['username']->render($form['username']->renderError() != '' ? array('class' => 'field_error') : array()) ?></td>
                    </tr>
                    <tr>
                        <th><?php echo __('Email') ?></th>
                        <td><?php echo $form['email_address']->render($form['email_address']->renderError() != '' ? array('class' => 'field_error') : array()) ?></td>
                    </tr>
                    <tr>
                        <th><?php echo __('Password') ?></th>
                        <td><?php echo $form['password']->render($form['password']->renderError() != '' ? array('class' => 'field_error') : array()) ?></td>
                    </tr>
                    <tr>
                        <th>Re-Enter Password</th>
                        <td><?php echo $form['password_again']->render($form['password_again']->renderError() != '' ? array('class' => 'field_error') : array()) ?></td>
                    </tr>
                    <th><?php echo __('University') ?></th>
                    <tr>
                        <td>
                            <div class="dos_select">
                                <?php echo $form['university_id']->render($form['university_id']->renderError() != '' ? array('class' => 'field_error') : array()) ?>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th><?php echo __('Faculty') ?></th>
                        <td>
                            <div class="dos_select">
                                <?php echo $form['faculty_id']->render($form['faculty_id']->renderError() != '' ? array('class' => 'field_error') : array()) ?>
                            </div>
                        </td>
                    </tr>
                </table>
                <div class="aright"><button class=dbutton><?php echo __('Register') ?></button></div>			
            </form>
        </div>
    </div>
</div>


